package adv5;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class FileWriter2 {

	public static void main(String[] args) {
		try {
			FileOutputStream fout = new FileOutputStream("E:\\Temp\\9-20.txt", true);
			// fout.write('\r');
			fout.write("\r\n".getBytes());// 换行
			fout.write(65);
			fout.write(66);
			fout.write(67);
			fout.write('f');
			fout.write(new byte[] { 97, 98, 99, 112 });
			String str = "我们班周琪最帅";
			fout.write(str.getBytes());
			fout.close();// ????
			System.out.println("写入完成");
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}

	}

}
